package cn.quartz.dbquartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author : zhuqiang
 * @version : V1.0
 * @date : 2016/9/17 12:51
 */
public class AllPushNotifyJob implements Job {
    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
//        JobDataMap dataMap = jobExecutionContext.getJobDetail().getJobDataMap();
//
//        AllPushMessage  allPushMessage = (AllPushMessage) dataMap.get("allPushMessage");
//
//        Date expectTriggerTime = allPushMessage.getPush_time();
//
//        Date realTriggerTime = new Date();
//        logger.info("execute category notify job with expect trigger time:" + DateUtils.format(expectTriggerTime, "yyyy-MM-dd HH:mm:ss Z"));
//        logger.info("real notify time:" + DateUtils.format(realTriggerTime, "yyyy-MM-dd HH:mm:ss Z"));
//        allPushMessageService.enforceAllPush(allPushMessage);
    }
}
